{%foreach from=$articles item='a' name='i'%}

<h3>{%$a->title%}</h3>
<i>{%$a->sdate%}</i>
<div>
   {%if $a->pics(0)%}
   <img src="{%$a->pics('0|src')%}" {%$a->pics('0|size')%} alt="{%$a->title|strip_tags|escape:'html'%}" align="left" border="0" />
   {%/if%}
   {%$a->description%}
</div>
<a href="{%$a->href%}">Читать далее</a>
<br><br>


{%if !$smarty.foreach.i.last%}<hr />{%/if%}
<div style="clear: both;"></div>
{%/foreach%}

{%if $pages%}
{%foreach from=$pages.links item='p' name='i'%}
{%if $smarty.foreach.i.first && $pages.prev%}
   <a href="{%$pages.prev.href%}">{%$TR->prev%}</a>
{%/if%}

{%if $p.current%}
   <span>{%$p.num%}</span>
{%else%}
   <a href="{%$p.href%}">{%$p.num%}</a>
{%/if%}

{%if $smarty.foreach.i.last && $pages.next%}
<a href="{%$pages.next.href%}">{%$TR->next%}</a>
{%/if%}
{%/foreach%}
{%/if%}